#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
	int ab,bc,ca;

	clrscr();

	printf("\n\n\n\t\tPlease Enter the three sides of a Triangle: ");
	scanf("%d%d%d",&ab,&bc,&ca);

	if(ab == bc == ca)
	{
		printf("\n\nThe Triangle is Equilateral.");
	}

	else if((ab == bc) || (ab == ca)|| (bc == ca))
	{
		printf("\n\nThe Triangle is Isoscales.");

			ab = (sqrt(bc*bc + ca*ca));
			bc = (sqrt(ab*ab + ca*ca));
			ca = (sqrt(ab*ab + bc*bc));

		printf("\n\nIt is also a Right Angled Triangle.");
	}

	else if(ab != bc != ca)
		{
			printf("\n\nThe Triangle is scalance.");

			ab = (sqrt(bc*bc + ca*ca));
			bc = (sqrt(ab*ab + ca*ca));
			ca = (sqrt(ab*ab + bc*bc));

			printf("\n\nIt is also a Right Angled Triangle.");
		}
	else if(ab == (sqrt(bc*bc + ca*ca)) || bc == (sqrt(ab*ab + ca*ca)) || ca == (sqrt(ab*ab + bc*bc)))
		printf("\n\nThe Triangle is Right angled Triangle.");

	getch();
}
